package com.toobigtofail.posevo
{
	import net.flashpunk.Entity;
	import net.flashpunk.Graphic;
	import net.flashpunk.Mask;
	import net.flashpunk.graphics.Spritemap;
	
	public class PointOfSit extends Entity
	{
		[Embed(source = '/assets/gfx/car_bodies.png')] private const CAR_BODIES:Class;
		
		private var _bodySprite:Spritemap = new Spritemap(CAR_BODIES, 40, 80);
		
		public function PointOfSit(x:Number=0, y:Number=0) {
			this.x = x;
			this.y = y;
			
			this.setHitbox(_bodySprite.width, _bodySprite.height);
			
			_bodySprite.setFrame(0,0);
			this.graphic = _bodySprite;
		}
	}
}